﻿<!--
Name:用户中心-推广佣金-佣金查询
Page:P_UserAgentMoney
-->
<div class="nbbox clearfix">
<div class="user">
    <div class="searchbox">
        <select name="status" id="status">
            <option value="0">┌<%=Tag("状态")%></option>
            <%=Shop.Bussiness.EX_Type.TypeOption("AgentMoneyStatus", status)%>
        </select>
        <input type="text" name="dateFrom" id="dateFrom" size="12" class="input-calendar" value="<%=dateFrom %>" /> - <input type="text" name="dateTo" id="dateTo" size="12" class="input-calendar" value="<%=dateTo %>" />
        <input type="text" id="key" name="key" class="input-query" value="<%=key %>" onkeydown="if(event.keyCode==13){search_();}" />
        <a href="javascript:void(0)" onclick="search_();" class="btn btn-12"><s></s>{tag:查询}</a>
        <a href="javascript:void(0);" onclick="TackAgentMoney();" class="btn btn-12"><s></s><%=Tag("转入现金账户")%></a>
        <div style="margin-top:5px;">
             <%=Tag("有效金额") %>：<%=CurrentCurrency.Msige %><%=zmoney.ToString("0.00")%>&nbsp;&nbsp;<%=Tag("可提现金额") %>：<%=CurrentCurrency.Msige %><%=money.ToString("0.00")%>
        </div>
    </div>
    <table cellpadding="0" cellspacing="0" width="100%" class="tablelist box">
        <tr>
            <th style="width: 130px">
                <%=Tag("时间")%>
            </th>
            <th style="width: 80px">
                <%=Tag("金额")%>
            </th>
             <th style="width: 150px">
                <%=Tag("类型")%>
            </th>
            <th style="width: 80px">
                <%=Tag("状态")%>
            </th>
            <th>
                <%=Tag("订单")%>
            </th>
        </tr>
        <%foreach (Shop.Model.Lebi_Agent_Money model in models)
          {
          %>
            <tr class="list">
                <td>
                    <%=FormatTime(model.Time_add)%>
                </td>
                <td>
                    <%=FormatMoney(model.Money) %>
                </td>
                <td>
                    <%=Shop.Bussiness.EX_Type.TypeName(model.Type_id_AgentMoneyType,CurrentLanguage.Code)%>
                </td>
                <td>
                    <%=Shop.Bussiness.EX_Type.TypeName(model.Type_id_AgentMoneyStatus,CurrentLanguage.Code)%>
                </td>
                <td>
                    <%=model.Order_Code%>
                </td>
            </tr>
        <%} %>
    </table>
    <div class="bottom clearfix"><div class="left"></div><div class="right"><%=PageString%></div></div>
</div>
</div>
<script type="text/javascript">
    function search_(scurl) {
        var key = $("#key").val();
        var status = $("#status").val();
        var dateFrom = $("#dateFrom").val();
        var dateTo = $("#dateTo").val();
        window.location = "?key=" + escape(key) + "&status=" + status + "&dateFrom=" + dateFrom + "&dateTo=" + dateTo;
    }
    function TackAgentMoney() { 
        if (!confirm("<%=Tag("确认提交吗？")%>"))
            return false;
        var url = path+"/Ajax/Ajax_agent.aspx?__Action=TackAgentMoney";
        RequestAjax(url,'',function(){MsgBox(1, "<%=Tag("操作成功")%>", "?")});
    }
</script>